#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtNetwork/QtNetwork>

#include <QMainWindow>
#include <QLineEdit>
#include <QLabel>
#include <QTimer>
#include <QCheckBox>
#include <QComboBox>
#include <QTextEdit>
#include <QPushButton>
#include "connection.h"
#include "proto/robocup_ssl_client.h"
#include <QPoint>
#include "robot.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

public slots:
        void updateaddress();
        void conectar();
        void reset();
        void send();
        void recv();
        void btnRecv();
private:
    Ui::MainWindow *ui;
    connection conection;
    RoboCupSSLClient* client;
    bool conectado;
    QTimer* timer1;
    QTimer* timer2;
    SSL_WrapperPacket packet;
    double v1,v2,v3,v4,vx,vy,w;
    double x_ball,y_ball;
    double x_robot,y_robot,o_robot;
    bool spin;
    double Tp,dT;
    Robot theOne;

};

#endif // MAINWINDOW_H
